package com.sap.sap_mangers.until;

/**
 * 根据文件上传的时间给出提示
 *
 * @author 阿东
 * @date 2022/9/12 [0:39]
 */
public class FileTipUntil {
    private final static String SEVEN_DAY = "最近更新";
    private final static String ONE_MONTH = "一个月前更新过";
    private final static String THREE_MONTH = "三个月前更新过";
    private final static String SIX_MONTH = "六个月前更新过";
    private final static String ONE_YEAR = "一年前更新过，不保证信息的时效性";
    private final static String ONE_YEAR_AND_SIX_MONTH = "一年半前更新过，不保证信息的时效性";
    private final static String TWO_YEAR = "两年前更新过，不保证信息的时效性";
    private final static String THREE_YEAR = "三年前更新过，建议谨慎参考";

    public static String getTip(int index) {
        switch (index) {
            case 1:
                return SEVEN_DAY;
            case 2:
                return ONE_MONTH;
            case 3:
                return THREE_MONTH;
            case 4:
                return SIX_MONTH;
            case 5:
                return ONE_YEAR;
            case 6:
                return ONE_YEAR_AND_SIX_MONTH;
            case 7:
                return TWO_YEAR;
            case 8:
                return THREE_YEAR;
            default:
                return null;
        }
    }

}
